<?php namespace App\Client\Base;

use Auth;
use App\Core\Exceptions\InputError;
require_once app_path().'/Library/qrcode/phpqrcode.php';

trait IndexService {
    
    public function qrcode(){
        $user = Auth::user();
        //$supplier = $user->supplier;
        if(!$user){
            throw new InputError('非法操作');
        }
        //\QRcode::png('http://wx.molihop.com/wx/index/CutomerInfo?custid='.$supplier->id, false, 0, 10, 0);
    }
}